import request from '@/utils/request'

// 查询盘点单主列表
export function listHmzInventoryMaster(query) {
  return request({
    url: '/system/HmzInventoryMaster/list',
    method: 'get',
    params: query
  })
}

// 查询盘点单主详细
export function getHmzInventoryMaster(id) {
  return request({
    url: '/system/HmzInventoryMaster/' + id,
    method: 'get'
  })
}

// 新增盘点单主
export function addHmzInventoryMaster(data) {
  return request({
    url: '/system/HmzInventoryMaster',
    method: 'post',
    data: data
  })
}

// 修改盘点单主
export function updateHmzInventoryMaster(data) {
  return request({
    url: '/system/HmzInventoryMaster',
    method: 'put',
    data: data
  })
}

// 删除盘点单主
export function delHmzInventoryMaster(id) {
  return request({
    url: '/system/HmzInventoryMaster/' + id,
    method: 'delete'
  })
}
